package com.ds.infrastructure.hyperspace.console.model.response.container;

import com.ds.infrastructure.hyperspace.console.entity.table.TbReleaseTask;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @author: yaozhendong
 * @create: 2019-11-12 10:06
 **/
@Data
@NoArgsConstructor
public class GetReleaseTaskListVO {
    private Long id;
    private Date gmtCreate;

    public static GetReleaseTaskListVO toVO(TbReleaseTask entity) {
        GetReleaseTaskListVO getReleaseTaskListVO = new GetReleaseTaskListVO();
        getReleaseTaskListVO.setId(entity.getId());
        getReleaseTaskListVO.setGmtCreate(entity.getGmtCreate());
        return getReleaseTaskListVO;
    }
}
